package com.hzhc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzhc.entity.CntrImgFile;
import com.hzhc.mapper.CntrImgFileMapper;
import com.hzhc.service.CntrImgFileService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 文件表 服务实现类
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-05-27
 */
@Service
public class CntrImgFileServiceImpl extends ServiceImpl<CntrImgFileMapper, CntrImgFile> implements CntrImgFileService {

    @Override
    public  List<CntrImgFile> getCntrImgFileList(CntrImgFile cntrImgFile) {
        return baseMapper.selectList(new LambdaQueryWrapper<CntrImgFile>()
                .eq(CntrImgFile::getOrderNo,cntrImgFile.getOrderNo())
                .eq(CntrImgFile::getFileType,cntrImgFile.getFileType())
                .eq(CntrImgFile::getCntrNo,cntrImgFile.getCntrNo())
                .eq(CntrImgFile::getDisable,0));
    }
}
